package com.kmproject.haifu.wxapi;

import android.content.Context;


import com.kmproject.haifu.mvp.model.api.Api;
import com.tencent.mm.sdk.openapi.IWXAPI;
import com.tencent.mm.sdk.openapi.WXAPIFactory;

/**
 * Created by Administrator on 2018/3/2.
 */

public class WxApiUtils {
    private static IWXAPI wxApi;

//    private static String wxKey = "wx2d961886f268c2b0";//正式版wx2d961886f268c2b0

    public static IWXAPI getWxApi(Context mcontext) {
        if (wxApi == null) {
            wxApi = WXAPIFactory.createWXAPI(mcontext, Api.WXAPPID);
            wxApi.registerApp(Api.WXAPPID);
        }
        return wxApi;
    }

}
